import {ADD_COUNTER,ADD_TO_CART} from './mutations-type'

export default { //最好用来只做一些单一操作
  [ADD_COUNTER](state,payload) {
    payload.count += 1
  },
  [ADD_TO_CART](state,payload) {
    payload.checked = true
    state.cartList.push(payload)
  }
}
